<!DOCTYPE html>
<html>
<head>
	<title>对象的简洁声明</title>
</head>
<body>
<script type="text/javascript">
	

/* 

	1. 可以直接使用变量作为对象的键值对 

*/

let name = 'jspang';
let arr = [1, 2];
let obj = {name: 'jspnag', age: 1};
let people = {
	name, 
	arr, 
	obj
};
console.log(people);

</script>
</body>
</html>